﻿using SqlSugar;
using System;
namespace WPFNote.Models
{
    public class Note : BaseEntity
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 分类ID
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 是否置顶
        /// </summary>
        public bool IsTop { get; set; }

        /// <summary>
        /// 是否展示
        /// </summary>
        public bool IsShow { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime EditTime { get; set; }

        /// <summary>
        /// Users
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Category Category { get; set; }

        /// <summary>
        /// Users
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Users Users { get; set; }
    }
}